package com.power.fegin.sentinel;

import com.power.domain.Prod;
import com.power.fegin.StoreProdFeign;
import com.power.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description 门店业务模块调用商品服务的Feign客户端熔断处理
 * @Author dingchunlin
 * @Date 2024/07/17 22:10
 * @Version 1.0.0
 */
@Component
@Slf4j
public class StoreProdFeignSentinel implements StoreProdFeign {

    @Override
    public Result<List<Prod>> getProdListByIds(List<Long> prodIdList) {
        log.error("根据商品ID列表查询商品信息失败，接口调用失败，触发熔断机制");
        return null;
    }

}
